import api from "../utils/http";
export default {
  // 知识库管理api
  // -------------------------知识库列表----------------------------------------------
  // 获取知识库列表
  getKnowledge () {
    return api({
      url: '/knowledgebase/selectAll',
      method: 'get'
    })
  },
  // 获取知识库分类
  getSort () {
    return api({
      url: '/knowledgebase/selectAllSort',
      method: 'get'
    })
  },
  // 删除当前知识
  delKnowledge (id) {
    return api({
      url: '/knowledgebase/selectAll',
      method: 'post',
      params: {
        id
      }
    })
  },
  // 多条件查询知识库
  searchKonwledge (data) {
    return api({
      url: '/knowledgebase/selectForPage',
      method: 'get',
      params: {
        ...data
      }
    })
  }

}